function dispinfo(obj)
    disp([obj.name, ' is a teacher']);
end